import service from '@/utils/request'

export const useOrderScenicApi = (id: number) => {
	return service.get('/ss/scenic/' + id)
}

export const useOrderScenicSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/ss/scenic', dataForm)
	} else {
		return service.post('/ss/scenic', dataForm)
	}
}